package com.dattplace.dao;

import java.util.List;
import java.util.Map;

import com.dattplace.model.FeedBack;
import com.dattplace.model.PlatformShare;
import com.dattplace.model.Praise;
import com.dattplace.model.ReleaseVersion;
import com.dattplace.model.ShareComment;
import com.dattplace.model.ShareTimes;

public interface IShareDao {

	void deleteShare(String shareId);

	ShareTimes querShareById(String shareId);

	void updatePraiseCount(String shareId, int i);

	void updatePraiseList(Praise p, String shareId);

	void saveShare(ShareTimes st);

	void comment(ShareComment sc);

	List<ShareComment> queryCommonList(String shareId);

	List<ShareTimes> shareList(int pageNo, int pageSize, String keyWord, int shareType, int queryType);

	long queryShareCount(String userId);

	long queryAllUserCount(String content, int shareType, String nickName, String shareStartDate, String shareEndDate);

	void updateShare(Map<String, Object> property, String shareId);

	Praise queryPraise(String shareId, String userId);

	void savePraise(Praise ps);

	void deletePraise(String shareId, String userId);

	void deleteComment(String shareId, String commentId);

	void updateCommentCount(String shareId, int i);

	List<ShareTimes> shareList(int pageNo, int pageSize, int queryType);

	List<ShareTimes> shareList(int pageNo, int pageSize, String userId);

	List<ShareComment> queryCommonListByUserId(String userId);

	List<ShareTimes> shareList(int pageNo, int pageSize, List<String> shareIds);

	void feedback(FeedBack map);

	void platformShare(PlatformShare map);

	void updateShareCount(String shareId, int i);

	ReleaseVersion autoUpdate();

	List<ShareTimes> queryShareList(int pageNo, int pageSize, String content, int shareType, String nickName,
			String shareStartDate, String shareEndDate);

	void increaseReadCount(String shareId);

	void increaseReadCount(String shareId, int count);

}
